Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unsafe procedures #135

Merged
merged 2 commits into from
Jan 14, 2025
Merged

Fix unsafe procedures #135

merged 2 commits into from
Jan 14, 2025

Conversation

newville
Copy link
Member

This is intended to address the security vulnerability in https://github.com/lmfit/asteval/security/advisories/GHSA-vp47-9734-prjw

by making all attributes of Procedure use "dunder names", so that they are viewed as unsafe from within the asteval Interpreter.

Copy link

codecov bot commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 92.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 95.6%. Comparing base (8d7326d) to head (3ba2d51).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
asteval/astutils.py 90.4% 4 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master    #135   +/-   ##
======================================
  Coverage    95.6%   95.6%           
======================================
  Files           4       4           
  Lines        2033    2041    +8     
======================================
+ Hits         1945    1953    +8     
  Misses         88      88           
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@newville newville merged commit aeea1b7 into master Jan 14, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant